import service from '../utils/request'
import Api from "./serviceApi";

export function release(data:any){
    return service({
        url: Api.common.show.release,
        method: 'post',
        headers:{
            "Content-Type":"application/json;charset-utf-8" //设置一下请求头
        },
        data
    })
}

export function getAllShow(data:any){
    return service({
        url: Api.common.show.getAllShow,
        method: 'post',
        params: data
    })
}

export function getUserShow(data:any){
    return service({
        url: Api.common.show.getUserShow,
        method: 'post',
        params: data
    })
}

export function praise(data:any){
    return service({
        url: Api.common.show.praise,
        method: 'post',
        params: data
    })
}

export function comment(data:any){
    return service({
        url: Api.common.show.comment,
        method: 'post',
        params: data
    })
}

export function deleteShow(data:any){
    return service({
        url: Api.common.show.deleteShow,
        method: 'post',
        params: data
    })
}